<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link href="./bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="./bootstrap/signin.css" rel="stylesheet">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>教务管理系统 - 用户登录</title>
</head>
<body>
 <div class="container" style="background:#FFF">
		<br><br><br><br><br><br>
		<form method="post" name ="frmLogin" action="LoginServlet" class="form-signin">
		<h2 class="form-signin-heading" align="center">教务系统登录</h2><br>
		<label for="inputAccount" class="sr-only">账号：</label>
		<input type=text name=user value="" id="inputAccount" class="form-control" placeholder="输入账号"  autocomplete="off" required autofocus>
		<br>
		<label for="inputPassword" class="sr-only">密码：</label>
		<input type=password name=passwd value="" id="inputPassword" class="form-control" placeholder="输入密码" required>
        <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name=radio value="stu" checked> <span>学生&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
        <input type="radio" name=radio value="tea" > <span>教师&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
        <input type="radio" name=radio value="adm" > <span>管理员</span>
		<br><p><input type="submit" name="Submit" value="登录" size="20" class="btn btn-lg btn-primary btn-block" onclick="return validateLogin();">
        </form>
	<script language="javaScript">
	function validateLogin()
	   {
	   var sUserName = document.frmLogin.user.value;
	   var sPassword = document.frmLogin.passwd.value;
	   if( sUserName=="" )
	   {
	    alert("请输入用户名！");
	    return false;
	   }
	   if( sPassword=="" )
	   {
	    alert("请输入密码！");
	    return false;
	   }
	   }
	</script>
</div>
</body>
</html>